<div class="footnav">
    <ul>
        <li>
            <a href="/">
                <span class="ico-f01">
                </span>
                <h3>
                    日程
                </h3>
            </a>
        </li>
        <li>
            <a href="__CONTROLLER__/showList">
                <span class="ico-f02">
                </span>
                <h3>
                    任务
                </h3>
            </a>
        </li>
        <li>
            <a href="__CONTROLLER__/showMine">
                <span class="ico-f03">
                </span>
                <h3>
                    个人中心
                </h3>
            </a>
        </li>
    </ul>
</div>

<script type="text/javascript">
    $('.footnav li').each(function(index,element){
        $this = $(this);
        if($this[0].querySelector('a').href==window.location.href){
            $this.addClass("on");
        }
    });   
</script>